Mega Code Archive

Categories
1) Android
2) ASP.Net
3) ASP.Net Tutorial
4) C
5) C Tutorial
6) C#
7) C# Book
8) C# by API
9) C# Tutorial
10) C++
11) C++ Tutorial
12) Delphi
13) Flash ActionScript
14) Flex
15) Java
16) Java Book
17) Java by API
18) Java Tutorial
19) JavaScript DHTML
20) JavaScript Reference
21) JavaScript Tutorial
22) MSOfficeExcel 2007 Tutorial
23) MSOfficePowerPoint 2007 Tutorial
24) MSOfficeWord 2007 Tutorial
25) MSSQL
26) MSSQL Tutorial
27) MySQL
28) MySQL Tutorial
29) Oracle PLSQL
30) Oracle PLSQL Tutorial
31) Perl
32) Php
33) PostgreSQL
34) Python
35) Python Tutorial
36) Ruby
37) Silverlight
38) VB.Net
39) VB.Net by API
40) VB.Net Tutorial
41) Visual C++ .NET
42) VisualBasic Script
43) XML
44) XML Tutorial
 
Python Tutorial
1) Buildin Function
2) Buildin Module
3) CGI Web
4) Class
5) Collections
6) Data Type
7) Database
8) Dictionary
9) File
10) Function
11) Introduction
12) List
13) Network
14) Operator
15) Regular Expressions
16) Statement
17) String
18) Thread
19) Tkinker
20) Tuple
21) Windows
22) Wxpython
23) XML
Buildin Module
1) A Simple Test Using the unittest Framework
2) Add to system log
3) Adding Line Numbers to a Python Script
4) Append path to system path
5) Ceil, floor, frexp, modf, exp
6) Copy deepcopy() function
7) Creating a New Date
8) Creating a New Time
9) Date Operations
10) Datetime module
11) Defining our own signal handler
12) Demonstrating popen and popen2
13) Execute system command with os system()
14) File statistics
15) Fork a thread
16) Handling Command-Line Arguments
17) Heap is a kind of priority queue
18) Here is an example executing a DOS command
19) Kill function for Win32
20) List directories
21) Load web site to your browser
22) Make a deep copy, copying the values, any values they contain
23) Network Byte Order
24) Opens a Web page in a system-specific editor
25) Operating System Interface
26) Os environ contains a dictionary of environmental variables
27) Os popen() a pipe
28) Os system(command) executes a system function as if it were in a subshell
29) Platform architecture() returns (bits, linkage) tuple
30) Platform python_version() returns the version of the Python
31) Platform uname() returns a tuple of (system, node, release, version, machine, processor)
32) Pop element from heap
33) Print sys version
34) Printing the command line arguments in reverse order
35) Printing to stderr
36) Process Management
37) Random integers produced by randrange
38) Random time
39) Redirecting Error Information
40) Redirecting Output
41) Replacing os popen()
42) Replacing os system()
43) Roll a six-sided die 6000 times
44) Run application from host
45) Run shell command
46) Set operation on string
47) Sleep() method of time module example
48) Starting a Web browser
49) Stdin of the sys module is a file object
50) Sys exit() and SystemExit
51) Sys exitfunc()
52) Sys module has the stdout and stderr attributes that point to files used for standard output and standard error output
53) The argv attribute of the sys module is a list
54) The list of search path can be found in the path variable in the sys module
55) Time asctime
56) Time clock() returns the current CPU time as a floating-point number that can be used for various timing functions
57) Time ctime(secs) returns the time, specified by secs since the UTC, as a formatted, printable string
58) Time localtime(secs) returns the time in the form of (year, month, day, hour, minute, second, day of week, day of year, day
59) Time Operations
60) Time sleep(sec) forces the current process to sleep for the number of seconds specified by the floating-point number secs.t
61) Time time() returns the current system time
62) Uses the system function to clear the screen
63) Using sys modules
64) Using the os execvp(path, args) to execute the application update exe with a command-line parameter of -verbose
65) Win32 Example
66) Windows-specific function os startfile
67) You can print the time values using the strftime() method